package com.fangtao.service;

import com.fangtao.dao.UserDAO;
import com.fangtao.domain.User;

/**
 * @ClassName testService
 * @Description TODO
 * @date 2022/9/22 14:05
 * @author: fangtao
 * @Version 1.0
 */
public class testService {
    private UserDAO userDAO=new UserDAO();
    public User getUser(){
        String sql="SELECT * FROM `smbms_user` WHERE id=1";
        User user = userDAO.querySingle(sql, User.class);
        return user;
    }
}
